<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'RcUserController@index');
    $router->get('/send_message', 'WxMessageController@SendMessage');
    $router->get('/select_user', 'RcUserController@selectUser');
    $router->resource('rc_user', 'RcUserController');
    $router->resource('help_list', 'helpListController');
    $router->resource('prize', 'PrizeController');
    $router->resource('prize_user', 'PrizeUserController');
    $router->resource('leaving_message', 'LeavingMessageController');
    $router->resource('wx_message', 'WxMessageController');
    $router->resource('red_box_error', 'RedBoxErrorController');

});
